ifneq ($(MAKECMDGOALS),clean)
include ../makeMacros
endif

.PHONY: all clean run

all: 3-src 	4-src 

3-src: 3-src.cpp
	$(CPP) $(CPPFLAGS) $(EXEFLAG)$@ $^	
	@echo "-----Runing" $@ "--begin----------------------------------"
	@$@
	@echo "-----Runing" $@ "--end------------------------------------"
	
4-src: 4-src.cpp
	$(CPP) $(CPPFLAGS) $(EXEFLAG)$@ $^	
	@echo "-----Runing" $@ "--begin----------------------------------"
	@$@
	@echo "-----Runing" $@ "--end------------------------------------"

clean:
	rm -f 3-src 4-src

run:
	@echo "-----Runing" 3-src "--begin----------------------------------"
	3-src
	@echo "-----Runing" 3-src "--end------------------------------------"
	@echo "-----Runing" 4-src "--begin----------------------------------"
	4-src
	@echo "-----Runing" 4-src "--end------------------------------------"
